package appapi.entity.Zhongjiao;

import appapi.common.BaseEntity;
import appapi.entity.app.AnnexEntity;
import appapi.entity.app.OnsitedetailEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;

import lombok.Builder;
import lombok.Data;
import org.springframework.beans.BeanUtils;

/**
 * @author  djq
 * @date 2023/5/23 15:07
 * @description: 
 */

/**
 * 附件信息表
 */
@ApiModel(value = "附件信息表")
@Data
public class AnnexDto extends BaseEntity {
    /**
     * 记录ID
     */
    @ApiModelProperty(value = "记录ID")
    private Long annexId;

    /**
     * 附件标题
     */
    @ApiModelProperty(value = "附件标题")
    private String annexTitle;

    /**
     * 附件类型 自检、月检、巡检 、整改 枚举
     */
    @ApiModelProperty(value = "附件类型 自检、月检、巡检 、整改 枚举")
    private String annexType;

    /**
     * 附件图片地址
     */
    @ApiModelProperty(value = "附件图片地址")
    private String annexUrl;

    /**
     * 附件备注
     */
    @ApiModelProperty(value = "附件备注")
    private String annexNote;

    @ApiModelProperty(value = "创建人员")
    private String createUser;

    @ApiModelProperty(value = "")
    private String modifyUser;


    /**
     * 巡检表id
     */
    @ApiModelProperty(value = "")
    private Long recId;
    public AnnexEntity vo2Entity() {
        AnnexEntity entity = new AnnexEntity();
        BeanUtils.copyProperties(this, entity);
        return entity;
    }
}